import React from "react";
import "./ConfirmModel.css";
import Card from "../Card/Card";
import Backdrop from "../BackDrop/BackDrop"

const ConfirmModel = props => {
    return <Backdrop >
        <Card className="confirmModel">
            <div className="confirmText">
                <p>{props.confirmText}</p>
            </div>
            <div className="confirmButton">
                <button onClick={props.cancelDelete}>取消</button>
                <button onClick={props.confirmDelete}>确认</button>
            </div>
        </Card>
    </Backdrop>;
};

export default ConfirmModel;